
package com.azxc.rapid.library.service.impl;

import com.azxc.rapid.core.log.exception.ServiceException;
import com.azxc.rapid.core.mp.base.BaseServiceImpl;
import com.azxc.rapid.core.secure.utils.AuthUtil;
import com.azxc.rapid.core.tool.utils.Func;
import com.azxc.rapid.library.entity.Book;
import com.azxc.rapid.library.vo.BookVO;
import com.azxc.rapid.library.mapper.BookMapper;
import com.azxc.rapid.library.service.IBookService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * 图书表 服务实现类
 * @since 2023-11-19
 */
@Service
public class BookServiceImpl extends BaseServiceImpl<BookMapper, Book> implements IBookService {

	@Override
	public IPage<BookVO> selectBookPage(IPage<BookVO> page, BookVO book) {
		return page.setRecords(baseMapper.selectBookPage(page, book));
	}


	@Override
	public boolean removeBook(String bookIds) {
		return deleteLogic(Func.toLongList(bookIds));
	}
}
